﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Script.Serialization;

namespace Client
{
    public partial class WebForm10 : System.Web.UI.Page
    {
        string name;
        protected void Page_Load(object sender, EventArgs e)
        {
            name = Session["UserName"].ToString();
            
        }
        public string ReturnName()
        {
            try
            {

                return (new JavaScriptSerializer()).Serialize(name);
            }
            catch (Exception ex)
            {
                return (new JavaScriptSerializer()).Serialize(name);
            }
        }
    }
}